# encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models

class Migration(SchemaMigration):

    def forwards(self, orm):
        
        # Adding model 'Fiction'
        db.create_table('fiction_fiction', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('name', self.gf('django.db.models.fields.CharField')(max_length=30)),
            ('url', self.gf('django.db.models.fields.URLField')(max_length=200)),
            ('last_modified_time', self.gf('django.db.models.fields.CharField')(max_length=50)),
            ('new_tag', self.gf('django.db.models.fields.BooleanField')(default=False)),
            ('subs', self.gf('django.db.models.fields.CharField')(max_length=30)),
        ))
        db.send_create_signal('fiction', ['Fiction'])

        # Adding model 'Chapter'
        db.create_table('fiction_chapter', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('fiction', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['fiction.Fiction'])),
            ('chapter', self.gf('django.db.models.fields.CharField')(max_length=100)),
            ('url', self.gf('django.db.models.fields.URLField')(max_length=200)),
        ))
        db.send_create_signal('fiction', ['Chapter'])


    def backwards(self, orm):
        
        # Deleting model 'Fiction'
        db.delete_table('fiction_fiction')

        # Deleting model 'Chapter'
        db.delete_table('fiction_chapter')


    models = {
        'fiction.chapter': {
            'Meta': {'object_name': 'Chapter'},
            'chapter': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
            'fiction': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['fiction.Fiction']"}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'url': ('django.db.models.fields.URLField', [], {'max_length': '200'})
        },
        'fiction.fiction': {
            'Meta': {'object_name': 'Fiction'},
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'last_modified_time': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '30'}),
            'new_tag': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'subs': ('django.db.models.fields.CharField', [], {'max_length': '30'}),
            'url': ('django.db.models.fields.URLField', [], {'max_length': '200'})
        }
    }

    complete_apps = ['fiction']
